<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qqw后台</title>

<link href="/Q170614/0720/qqw/Public/admin/css/bootstrap.min.css" rel="stylesheet">
<link href="/Q170614/0720/qqw/Public/admin/css/datepicker3.css" rel="stylesheet">
<link href="/Q170614/0720/qqw/Public/admin/css/styles.css" rel="stylesheet">

<!--[if lt IE 9]>
<script src="/Q170614/0720/qqw/Public/admin/js/html5shiv.js"></script>
<script src="/Q170614/0720/qqw/Public/admin/js/respond.min.js"></script>
<![endif]-->

</head>

<body>
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#"><span>Lumino</span>Admin</a>
                <ul class="user-menu">
                    <li class="dropdown pull-right">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span><?php echo $userinfo['name'];?><span class="caret"></span></a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="#"><span class="glyphicon glyphicon-user"></span> Profile</a></li>
                            <li><a href="#"><span class="glyphicon glyphicon-cog"></span> Settings</a></li>
                            <li><a href="<?php echo U('Login/logout');?>"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
                            
        </div><!-- /.container-fluid -->
    </nav>
        
    <div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar">
        <form role="search">
            <div class="form-group">
                <input type="text" class="form-control" placeholder="Search">
            </div>
        </form>
        <ul class="nav menu">
            <li <?php if($current_controller=='Index'){ echo "class=\"active\"";}?> ><a href="<?php echo U('Index/index');?>"><span class="glyphicon glyphicon-dashboard"></span> 首页设置</a></li>
            <li <?php if($current_controller=='Forum'){ echo "class=\"active\"";}?> ><a href="<?php echo U('Forum/index');?>"><span class="glyphicon glyphicon-th"></span> 论坛设置</a></li>
            <li <?php if($current_controller=='Class'){ echo "class=\"active\"";}?> ><a href="<?php echo U('Class/index');?>"><span class="glyphicon glyphicon-stats"></span> 最新课程</a></li>
            <li><a href="tables.html"><span class="glyphicon glyphicon-list-alt"></span> Tables</a></li>
            <li><a href="forms.html"><span class="glyphicon glyphicon-pencil"></span> Forms</a></li>
            <li><a href="panels.html"><span class="glyphicon glyphicon-info-sign"></span> Alerts &amp; Panels</a></li>
            <li class="parent ">
                <a href="#">
                    <span class="glyphicon glyphicon-list"></span> Dropdown <span data-toggle="collapse" href="#sub-item-1" class="icon pull-right"><em class="glyphicon glyphicon-s glyphicon-plus"></em></span> 
                </a>
                <ul class="children collapse" id="sub-item-1">
                    <li>
                        <a class="" href="#">
                            <span class="glyphicon glyphicon-share-alt"></span> Sub Item 1
                        </a>
                    </li>
                    <li>
                        <a class="" href="#">
                            <span class="glyphicon glyphicon-share-alt"></span> Sub Item 2
                        </a>
                    </li>
                    <li>
                        <a class="" href="#">
                            <span class="glyphicon glyphicon-share-alt"></span> Sub Item 3
                        </a>
                    </li>
                </ul>
            </li>
            <li role="presentation" class="divider"></li>
            <li><a href="<?php echo U('Login/index');?>"><span class="glyphicon glyphicon-user"></span> Login Page</a></li>
        </ul>
        <div class="attribution">Template by <a href="http://www.medialoot.com/item/lumino-admin-bootstrap-template/">Medialoot</a></div>
    </div><!--/.sidebar-->
        
    <div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">           
        <div class="row">
    <ol class="breadcrumb">
        <li><a href="#"><span class="glyphicon glyphicon-home"></span></a></li>
        <li class="active">Forms</li>
    </ol>
</div><!--/.row-->

<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">首页设置1</h1>
    </div>
</div><!--/.row-->
        

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">首页设置</div>
            <div class="panel-body">
                <form action="<?php echo U('index/indexSet');?>" method="post">
                    <div class="form-group">
                        <label>标题设置</label>
                        <input class="form-control" placeholder="请填写首页的主标题" name="title" value="<?php echo $indexinfo['title']?>">
                    </div>
                    <button type="submit" class="btn btn-primary">提交</button>
                </form>
            </div>
        </div>
    </div><!-- /.col-->
</div><!-- /.row -->
    </div><!--/.main-->

    <script src="/Q170614/0720/qqw/Public/admin/js/jquery-1.11.1.min.js"></script>
    <script src="/Q170614/0720/qqw/Public/admin/js/bootstrap.min.js"></script>
    <script src="/Q170614/0720/qqw/Public/admin/js/chart.min.js"></script>
    <script src="/Q170614/0720/qqw/Public/admin/js/chart-data.js"></script>
    <script src="/Q170614/0720/qqw/Public/admin/js/easypiechart.js"></script>
    <script src="/Q170614/0720/qqw/Public/admin/js/easypiechart-data.js"></script>
    <script src="/Q170614/0720/qqw/Public/admin/js/bootstrap-datepicker.js"></script>
    <script>
        !function ($) {
            $(document).on("click","ul.nav li.parent > a > span.icon", function(){        
                $(this).find('em:first').toggleClass("glyphicon-minus");      
            }); 
            $(".sidebar span.icon").find('em:first').addClass("glyphicon-plus");
        }(window.jQuery);

        $(window).on('resize', function () {
          if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')
        })
        $(window).on('resize', function () {
          if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')
        })
    </script>   
</body>

</html>